package com.swsc.xapp.model;


import com.swsc.xapp.enums.DefectStateEnums;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author licm
 * Copyright (c) 永辉金融
 * Create time 2021-6-28 22:55
 * <p>
 * Date         Author      Version     Description
 * ---------------------------------------------------------
 * 2021-6-28      licm        1.0         新建
 **/
public class DefectDetailResVO {
    private Integer organNo;
    private Integer stationNo;

    private String deviceCode;

    private String deviceName;

    private Integer faultNo;


    private String faultName;

    private String patrolTime;

    private Float loss;

    private String state;
    private String stateName;
    private String faultReason;
    private String remark;
    private List<Map<String,String>> imageList;

    private Double longitude;

    /** 纬度 */
    private Double latitude;

    private String dealer;

    private String dealTime;
    public String getStateName() {
        return DefectStateEnums.getName(this.state);
    }

    public Integer getOrganNo() {
        return organNo;
    }

    public void setOrganNo(Integer organNo) {
        this.organNo = organNo;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Integer getFaultNo() {
        return faultNo;
    }

    public void setFaultNo(Integer faultNo) {
        this.faultNo = faultNo;
    }

    public String getFaultName() {
        return faultName;
    }

    public void setFaultName(String faultName) {
        this.faultName = faultName;
    }

    public String getPatrolTime() {
        return patrolTime;
    }

    public void setPatrolTime(String patrolTime) {
        this.patrolTime = patrolTime;
    }

    public Float getLoss() {
        return loss;
    }

    public void setLoss(Float loss) {
        this.loss = loss;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getFaultReason() {
        return faultReason;
    }

    public void setFaultReason(String faultReason) {
        this.faultReason = faultReason;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<Map<String, String>> getImageList() {
        return imageList;
    }

    public void setImageList(List<Map<String, String>> imageList) {
        this.imageList = imageList;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public String getDealTime() {
        return dealTime;
    }

    public void setDealTime(String dealTime) {
        this.dealTime = dealTime;
    }

    public Integer getStationNo() {
        return null != stationNo ? stationNo : organNo;
    }

    public void setStationNo(Integer stationNo) {
        this.stationNo = stationNo;
    }
}

